class Comment < ActiveRecord::Base
  belongs_to :post,   :counter_cache => true
  belongs_to :author, :class_name => 'User'

  validates_presence_of :body
  named_scope :unread, :conditions => {:is_unread => true}
  named_scope :read, :conditions => {:is_unread => false}
end